//
//  SZHomeViewController.m
//  仿网易新闻
//
//  Created by made on 17/1/3.
//  Copyright © 2017年 made. All rights reserved.
//

#import "SZHomeViewController.h"
#import "SZChannelView.h"
#import "SZChannelModel.h"


@interface SZHomeViewController ()
{
    SZChannelView *clView;
}

@end

@implementation SZHomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    //测试
    clView = [[SZChannelView alloc] initWithFrame:CGRectMake(0, 80, self.view.bounds.size.width, 40)];
    clView.currentIndex = 0;
    [self.view addSubview:clView];
    clView.channelList = [SZChannelModel channelList];
}


//- (void) touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    int randomCount = arc4random() % 10 +1;
//    NSLog(@"=====random:%d",randomCount);
//    clView.currentIndex = randomCount;
//}



@end
